package com.wiz.web.service.impl;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Service;

import com.wiz.vo.TransimissionVO;
import com.wiz.web.service.TestService;

@Service("testService")
public class TestServiceImpl extends BasicServiceImpl implements TestService {

	@Override
	public String wxBarPay(HttpServletRequest request,String s) throws Exception {
		System.out.println("service  "+s+"======"+Thread.currentThread().getId());
		TransimissionVO vo = new TransimissionVO();
		transMap.put(s, vo);
		while(vo.getSwitchValue() == 0){
			System.out.println("sleep");
			Thread.sleep(3000);
		}
		System.out.println("awake");
		return "success";
	}

}
